package com.baige.api.app.sdk.request;

import com.baige.common.utils.RegularUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;

/**
 * 用户实名认证请求对象
 * @author wulg
 * @date 2018/12/13.
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "UserRealNameCertificationRequest", description = "用户实名认证请求对象")
public class UserRealNameCertificationRequest
{
    @NotEmpty(message = "身份证号不能为空")
    @Pattern(regexp = RegularUtil.IDENTITY_CARD,message = "身份证号格式错误")
    @ApiModelProperty(value = "身份证号")
    private String idNumber;
    @NotEmpty(message = "真实姓名不能为空")
    @ApiModelProperty(value = "真实姓名")
    private String name;
    @ApiModelProperty(value = "性别")
    private String gender;
    @ApiModelProperty(value = "民族")
    private String nation;
    @ApiModelProperty(value = "真实地址")
    private String address;
    @ApiModelProperty(value = "身份证照片地址")
    private String cardPictureUrl;
    @ApiModelProperty(value = "手机号")
    @Pattern(regexp = RegularUtil.EXACT_MOBILE_PATTERN,message = "手机号格式错误")
    private String phone;
    @ApiModelProperty(value = "验证码")
    private String smsCode;
}
